import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '产品名称',
    align: "center",
    dataIndex: 'productName'
  },
  {
    title: '设备',
    align: "center",
    dataIndex: 'deviceId_dictText'
  },
  {
    title: '产品缩略图',
    align: "center",
    dataIndex: 'productThumbnail',
    customRender: render.renderImage,
  },
];

// 高级查询数据
export const superQuerySchema = {
  productName: {title: '产品名称',order: 0,view: 'text', type: 'string',},
  deviceId: {title: '设备',order: 1,view: 'sel_search', type: 'string',dictTable: "base_device", dictCode: 'id', dictText: 'device_model',},
  productThumbnail: {title: '产品缩略图',order: 2,view: 'image', type: 'string',},
};
